package com.demo.mvc.ioc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
public class People002 {
  @Autowired
  @Qualifier("dogImpl")
  Animal animal;

  public void myAnimalSay(){
    animal.say();
  }
}
